﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Silverlight.ControlToolkit.Validator
{
    public class InvalidControl
    {

        public Control ErrorControl { get; set; }
        public string ErrorMessage { get; set; }
        public decimal TabIndex { get; set; }

        public InvalidControl()
        {
        }

        public InvalidControl(Control errorControl, decimal tabIndex, string errorMessage)
        {
            this.ErrorControl = errorControl;
            this.TabIndex = tabIndex;
            this.ErrorMessage = errorMessage;
        }


        public override string ToString()
        {
            return this.ErrorMessage;
        }
    }


}
